<template>
  <a-config-provider :theme="getPopupContainer" :locale="zhCN">
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script setup>
import zhCN from "ant-design-vue/es/locale/zh_CN";

const getPopupContainer = (el, dialogContext) => {
  if (dialogContext) {
    return dialogContext.getDialogWrap();
  } else {
    return document.body;
  }
};
</script>

<style lang="less" scoped>
/* 禁止整个页面滚动 */
html,
body {
  height: 100%;
  overflow: hidden;
}
</style>
